class BeerMapController < UIViewController
  def init
    if super 
      self.tabBarItem = UITabBarItem.alloc.initWithTitle("Map", image: UIImage.imageNamed('map.png'), tag: 1)
    end
    self
  end

  def loadView
    # 使用地图
    self.view = MKMapView.new
    view.delegate = self
  end

  def viewDidLoad
    view.frame = tabBarController.view.bounds

    region = MKCoordinateRegionMake(CLLocationCoordinate2D.new(50.85, 4.35), MKCoordinateSpanMake(3.1, 3.1))
    self.view.setRegion(region)
  end
end